/**
 * 
 */
package xj.toolkit.unit;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

/**
 * @author isdom
 *
 */
@SuppressWarnings("deprecation")
public class PropertyConfigurerFactory {

	public void setConfigurer(final PropertyPlaceholderConfigurer configurer) {
		this._configurer = configurer;
	}
	
	public PropertyPlaceholderConfigurer createConfigurer() throws Exception {
		return (null != this._configurer ) 
				?  this._configurer
				:  new PropertyPlaceholderConfigurer();
	}
	
	private PropertyPlaceholderConfigurer  _configurer = null;
}
